<template>
  <div class="li w100 flex-row j-sb pointer">
    <div class="left flex-row">
      <div class="dot" v-if="showDot"></div>
      <div class="title" @click="handNes">{{ title }}</div>
    </div>
    <div class="right">{{ updateTime }}</div>
  </div>
</template>
<script>
export default {
  props: {
    showDot: {
      type: Boolean,
      default: true,
    },
    type: [String],
    title: [String],
    updateTime: [String],
  },
  methods: {
    handNes() {
      this.$emit("handNes");
    },
  },
};
</script>
<style lang="less" scoped>
.li {
  margin-bottom: 20px;
  width: 100%;
  &:last-child {
    margin-bottom: 0 !important;
  }
  &:hover .title {
    text-decoration: underline;
    color: #c31a2c;
  }
  .title {
    font-size: 15px;
    color: #303030;
    letter-spacing: 0;
    font-weight: bolder;
  }
  .dot {
    background: #bf1425;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 12px;
  }
  .right {
    font-size: 13px;
    color: #999999;
    letter-spacing: 0;
  }
}
</style>
